<template>
    <div id="app" class="">
        <router-view :key="key"></router-view>
        
    </div>
</template>
<script>
    // import sysmHeader from './components/Sysm-header'
    export default {
        data(){
            return {}
        },
        components: {
            // sysmHeader
        },
        methods:{
            toRouter(o,n,parentId){
                this.selNav = n;
                this.vtp.set('selNavName',n);
                // this.$store.commit('user/setMenuParentId', parentId);
                // this.vtp.toRouter(this,o);
                this.$router.push({ path: o, query: { menuParentId: parentId }});
            },
            toRouterHome(){
                this.$router.push({ path: "/home"});
            }
        },
        watch:{
            $route(){
                this.selNav = this.vtp.get('selNavName');
            }
        },
        computed:{
            key(){
                return this.$route.path + Math.random();
            }
        }
    }
</script>
<style lang="scss">
</style>
